body {
    background-image: url('/static/images/R-C.png'); /* 背景图片路径 */
    background-size: cover; /* 背景图片覆盖整个页面 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    margin: 0;
    padding: 0;
    height: 100vh; /* 使body高度占满视口 */
    display: flex; /* 使用flex布局 */
    flex-direction: row; /* 子元素水平排列 */
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.sidebar {
    width: 200px;
    background-color: #333;
    color: white;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.sidebar a {
    color: white;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    display: block;
    width: 100%;
    text-align: left;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #555;
}

.main-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto; /* 添加滚动条，防止内容溢出 */
}

/* 标题样式 */
h1, h2 {
    color: darkslategray;
    text-align: center;
}

/* 表格样式 */
table {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%; /* 表格宽度 */
    margin: auto;
    background: rgba(255, 255, 255, 0.8); /* 背景透明度 */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

th, td {
    border: 1px solid darkslategray;
    padding: 10px;
    text-align: center;
}

/* 表单样式 */
form {
    text-align: center;
    margin: 20px 0;
}

input[type="text"] {
    width: calc(100% - 22px); /* 调整宽度，减去左右padding */
    padding: 8px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    width: 100px; /* 按钮宽度 */
    display: inline-block;
    border-radius: 5px; /* 添加按钮圆角 */
}

input[type="submit"]:hover {
    opacity: 0.8;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: darkslategray;
}

.pagination a:hover {
    text-decoration: underline;
}

/* 按钮样式 */
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    margin: 10px 0;
    border: none;
    cursor: pointer;
    width: 120px; /* 按钮宽度 */
    display: inline-block;
    border-radius: 5px; /* 添加按钮圆角 */
}

button a {
    color: white;
    text-decoration: none;
}

button a:hover {
    text-decoration: underline;
}